<!--
 * @FilePath: index.vue
 * @@author: wjj
 * @Date: 2024-10-10 12:58:03
 * @@Description: new js file
-->
<template>
  <div class="box">
    <el-button @click="goHome" type="success">首页</el-button>
    <img src="../../assets/images/error_images/404.png" alt="" />
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
let $router = useRouter()
const goHome = () => {
  $router.push('/home')
}
</script>

<style scoped lang="scss">
.box {
  width: 100vw;
  height: 100vh;
  background: yellowgreen;
  display: flex;
  justify-content: center;
  img {
    width: 800px;
    height: 400px;
  }
  button {
    width: 150px;
    height: 50px;
  }
}
</style>
